import React from "react";

import canvas from "../../../libs/LoginCanvas";

export default class LoginBg extends React.PureComponent {
  componentDidMount() {
    // this.$el = this.el;
    // this.$el.somePlugin();
    canvas.init({
      elem: this.el
    });
  }
  componentWillUnmount() {
    canvas.destroy();
  }
  render() {
    return <div ref={el => (this.el = el)} />;
  }
}
